from info import create_app,db,models
from flask_migrate import Migrate,MigrateCommand
from flask_script import Manager

app = create_app("develop")

#2,创建manage对象,管理app
manager = Manager(app)

#3,使用Migrate将app和db关联起来
Migrate(app,db)

#4,添加操作命令使用,MigrateCommand
manager.add_command("db",MigrateCommand)


if __name__ == '__main__':
    manager.run()